package nb.yan.util;

import nb.yan.dao.impl.ArrayOrderDao;
import nb.yan.entity.Order;

public class OrderIdGenerator {

	public static int generate() {
		Order[] orders = new ArrayOrderDao().getAll();
		return orders[orders.length - 1].getOrderId() + 1;
	}
	
}
